<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Zend 宏，函数手册</title>
</head>
<body>
<div>
 <h1 class="title">字符串函数</h1>
 <div class="partintro">
  <h1 class="title">参见</h1>
  <p class="para">
   更多强大的字符串处理函数，参见 <a class="link" href="ref.regex.php">POSIX 正则表达式函数</a>和 <a class="link" href="ref.pcre.php">Perl 兼容正则表达式函数</a>。
  </p>
 </div>
<h2>Table of Contents</h2>
	<ul class="chunklist chunklist_reference">
		
			<li><a href="function.addcslashes.php">addcslashes</a> &mdash; 以 C 语言风格使用反斜线转义字符串中的字符</li>
		
			<li><a href="function.addslashes.php">addslashes</a> &mdash; 使用反斜线引用字符串</li>
		
			<li><a href="function.bin2hex.php">bin2hex</a> &mdash; 将二进制数据转换成十六进制表示</li>
			<li><a href="function.chop.php">chop</a> &mdash; rtrim 的别名</li>
			<li><a href="function.chr.php">chr</a> &mdash; 返回指定的字符</li>
			<li><a href="function.chunk-split.php">chunk_split</a> &mdash; 将字符串分割成小块</li>
			<li><a href="function.convert-cyr-string.php">convert_cyr_string</a> &mdash; 将字符由一种 Cyrillic 字符转换成另一种</li>
			<li><a href="function.convert-uudecode.php">convert_uudecode</a> &mdash; 解码一个 uuencode 编码的字符串</li>
			<li><a href="function.convert-uuencode.php">convert_uuencode</a> &mdash; 使用 uuencode 编码一个字符串</li>
			<li><a href="function.count-chars.php">count_chars</a> &mdash; 返回字符串所用字符的信息</li>
			<li><a href="function.crc32.php">crc32</a> &mdash; 计算一个字符串的 crc32 多项式</li>
			<li><a href="function.crypt.php">crypt</a> &mdash; 单向字符串散列</li>
			<li><a href="function.echo.php">echo</a> &mdash; 输出一个或多个字符串</li>
			<li><a href="function.explode.php">explode</a> &mdash; 使用一个字符串分割另一个字符串</li>
			<li><a href="function.fprintf.php">fprintf</a> &mdash; 将格式化后的字符串写入到流</li>
			<li><a href="function.get-html-translation-table.php">get_html_translation_table</a> &mdash; 返回使用 htmlspecialchars 和 htmlentities 后的转换表</li>
			<li><a href="function.hebrev.php">hebrev</a> &mdash; 将逻辑顺序希伯来文（logical-Hebrew）转换为视觉顺序希伯来文（visual-Hebrew）</li>
			<li><a href="function.hebrevc.php">hebrevc</a> &mdash; 将逻辑顺序希伯来文（logical-Hebrew）转换为视觉顺序希伯来文（visual-Hebrew），并且转换换行符</li>
			<li><a href="function.hex2bin.php">hex2bin</a> &mdash; Converts the hex representation of data to binary</li>
			<li><a href="function.html-entity-decode.php">html_entity_decode</a> &mdash; Convert all HTML entities to their applicable characters</li>
			<li><a href="function.htmlentities.php">htmlentities</a> &mdash; Convert all applicable characters to HTML entities</li>
			<li><a href="function.htmlspecialchars-decode.php">htmlspecialchars_decode</a> &mdash; Convert special HTML entities back to characters</li>
			<li><a href="function.htmlspecialchars.php">htmlspecialchars</a> &mdash; Convert special characters to HTML entities</li>
			<li><a href="function.implode.php">implode</a> &mdash; Join array elements with a string</li>
			<li><a href="function.join.php">join</a> &mdash; 别名 implode</li>
			<li><a href="function.lcfirst.php">lcfirst</a> &mdash; Make a string's first character lowercase</li>
			<li><a href="function.levenshtein.php">levenshtein</a> &mdash; Calculate Levenshtein distance between two strings</li>
			<li><a href="function.localeconv.php">localeconv</a> &mdash; Get numeric formatting information</li>
			<li><a href="function.ltrim.php">ltrim</a> &mdash; Strip whitespace (or other characters) from the beginning of a string</li>
			<li><a href="function.md5-file.php">md5_file</a> &mdash; 计算指定文件的 MD5 散列值</li>
			<li><a href="function.md5.php">md5</a> &mdash; 计算字符串的 MD5 散列值</li>
			<li><a href="function.metaphone.php">metaphone</a> &mdash; Calculate the metaphone key of a string</li>
			<li><a href="function.money-format.php">money_format</a> &mdash; Formats a number as a currency string</li>
			<li><a href="function.nl-langinfo.php">nl_langinfo</a> &mdash; Query language and locale information</li>
			<li><a href="function.nl2br.php">nl2br</a> &mdash; 在字符串所有新行之前插入 HTML 换行标记</li>
			<li><a href="function.number-format.php">number_format</a> &mdash; Format a number with grouped thousands</li>
			<li><a href="function.ord.php">ord</a> &mdash; 返回字符的 ASCII 码值</li>
			<li><a href="function.parse-str.php">parse_str</a> &mdash; Parses the string into variables</li>
			<li><a href="function.print.php">print</a> &mdash; 输出字符串</li>
			<li><a href="function.printf.php">printf</a> &mdash; 输出格式化字符串</li>
			<li><a href="function.quoted-printable-decode.php">quoted_printable_decode</a> &mdash; Convert a quoted-printable string to an 8 bit string</li>
			<li><a href="function.quoted-printable-encode.php">quoted_printable_encode</a> &mdash; Convert a 8 bit string to a quoted-printable string</li>
			<li><a href="function.quotemeta.php">quotemeta</a> &mdash; Quote meta characters</li>
			<li><a href="function.rtrim.php">rtrim</a> &mdash; 删除字符串末端的空白字符（或者其他字符）</li>
			<li><a href="function.setlocale.php">setlocale</a> &mdash; Set locale information</li>
			<li><a href="function.sha1-file.php">sha1_file</a> &mdash; 计算文件的 sha1 散列值</li>
			<li><a href="function.sha1.php">sha1</a> &mdash; 计算字符串的 sha1 散列值</li>
			<li><a href="function.similar-text.php">similar_text</a> &mdash; 计算两个字符串的相似度</li>
			<li><a href="function.soundex.php">soundex</a> &mdash; Calculate the soundex key of a string</li>
			<li><a href="function.sprintf.php">sprintf</a> &mdash; Return a formatted string</li>
			<li><a href="function.sscanf.php">sscanf</a> &mdash; Parses input from a string according to a format</li>
			<li><a href="function.str-getcsv.php">str_getcsv</a> &mdash; 解析 CSV 字符串为一个数组</li>
			<li><a href="function.str-ireplace.php">str_ireplace</a> &mdash; str_replace 的忽略大小写版本</li>
			<li><a href="function.str-pad.php">str_pad</a> &mdash; 使用另一个字符串填充字符串为指定长度</li>
			<li><a href="function.str-repeat.php">str_repeat</a> &mdash; 重复一个字符串</li>
			<li><a href="function.str-replace.php">str_replace</a> &mdash; 子字符串替换</li>
			<li><a href="function.str-rot13.php">str_rot13</a> &mdash; 对字符串执行 ROT13 转换</li>
			<li><a href="function.str-shuffle.php">str_shuffle</a> &mdash; 随机打乱一个字符串</li>
			<li><a href="function.str-split.php">str_split</a> &mdash; 将字符串转换为数组</li>
			<li><a href="function.str-word-count.php">str_word_count</a> &mdash; 返回字符串中单词的使用情况</li>
			<li><a href="function.strcasecmp.php">strcasecmp</a> &mdash; 二进制安全比较字符串（不区分大小写）</li>
			<li><a href="function.strchr.php">strchr</a> &mdash; 别名 strstr</li>
			<li><a href="function.strcmp.php">strcmp</a> &mdash; 二进制安全字符串比较</li>
			<li><a href="function.strcoll.php">strcoll</a> &mdash; 基于区域设置的字符串比较</li>
			<li><a href="function.strcspn.php">strcspn</a> &mdash; 获取不匹配遮罩的起始子字符串的长度</li>
			<li><a href="function.strip-tags.php">strip_tags</a> &mdash; 从字符串中去除 HTML 和 PHP 标记</li>
			<li><a href="function.stripcslashes.php">stripcslashes</a> &mdash; 反引用一个使用 addcslashes 转义的字符串</li>
			<li><a href="function.stripos.php">stripos</a> &mdash; 查找字符串首次出现的位置（不区分大小写）</li>
			<li><a href="function.stripslashes.php">stripslashes</a> &mdash; 反引用一个引用字符串</li>
			<li><a href="function.stristr.php">stristr</a> &mdash; strstr 函数的忽略大小写版本</li>
			<li><a href="function.strlen.php">strlen</a> &mdash; 获取字符串长度</li>
			<li><a href="function.strnatcasecmp.php">strnatcasecmp</a> &mdash; 使用“自然顺序”算法比较字符串（不区分大小写）</li>
			<li><a href="function.strnatcmp.php">strnatcmp</a> &mdash; 使用自然排序算法比较字符串</li>
			<li><a href="function.strncasecmp.php">strncasecmp</a> &mdash; 二进制安全比较字符串开头的若干个字符（不区分大小写）</li>
			<li><a href="function.strncmp.php">strncmp</a> &mdash; 二进制安全比较字符串开头的若干个字符</li>
			<li><a href="function.strpbrk.php">strpbrk</a> &mdash; 在字符串中查找一组字符的任何一个字符</li>
			<li><a href="function.strpos.php">strpos</a> &mdash; 查找字符串首次出现的位置</li>
			<li><a href="function.strrchr.php">strrchr</a> &mdash; 查找指定字符在字符串中的最后一次出现</li>
			<li><a href="function.strrev.php">strrev</a> &mdash; 反转字符串</li>
			<li><a href="function.strripos.php">strripos</a> &mdash; 计算指定字符串在目标字符串中最后一次出现的位置（不区分大小写）</li>
			<li><a href="function.strrpos.php">strrpos</a> &mdash; 计算指定字符串在目标字符串中最后一次出现的位置</li>
			<li><a href="function.strspn.php">strspn</a> &mdash; 计算字符串中全部字符都存在于指定字符集合中的第一段子串的长度。</li>
			<li><a href="function.strstr.php">strstr</a> &mdash; 查找字符串的首次出现</li>
			<li><a href="function.strtok.php">strtok</a> &mdash; 标记分割字符串</li>
			<li><a href="function.strtolower.php">strtolower</a> &mdash; 将字符串转化为小写</li>
			<li><a href="function.strtoupper.php">strtoupper</a> &mdash; 将字符串转化为大写</li>
			<li><a href="function.strtr.php">strtr</a> &mdash; 转换指定字符</li>
			<li><a href="function.substr-compare.php">substr_compare</a> &mdash; 二进制安全比较字符串（从偏移位置比较指定长度）</li>
			<li><a href="function.substr-count.php">substr_count</a> &mdash; 计算字串出现的次数</li>
			<li><a href="function.substr-replace.php">substr_replace</a> &mdash; 替换字符串的子串</li>
			<li><a href="function.substr.php">substr</a> &mdash; 返回字符串的子串</li>
			<li><a href="function.trim.php">trim</a> &mdash; 去除字符串首尾处的空白字符（或者其他字符）</li>
			<li><a href="function.ucfirst.php">ucfirst</a> &mdash; 将字符串的首字母转换为大写</li>
			<li><a href="function.ucwords.php">ucwords</a> &mdash; 将字符串中每个单词的首字母转换为大写</li>
			<li><a href="function.vfprintf.php">vfprintf</a> &mdash; 将格式化字符串写入流</li>
			<li><a href="function.vprintf.php">vprintf</a> &mdash; 输出格式化字符串</li>
			<li><a href="function.vsprintf.php">vsprintf</a> &mdash; 返回格式化字符串</li>
			<li><a href="function.wordwrap.php">wordwrap</a> &mdash; 打断字符串为指定数量的字串</li>
	</ul>
</div>
</body>
</html>
